package com.lalilu.homework2;

import android.content.Intent;
import android.os.Bundle;

import androidx.appcompat.app.AppCompatActivity;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        this.setTitle("First Activity");
        findViewById(R.id.button).setOnClickListener((view) -> {
            this.startActivity(new Intent(this, AnotherActivity.class));
        });
    }
}